<%@ Page Language="VB" MasterPageFile="~/MasterPageExpandable.master" AutoEventWireup="false" EnableEventValidation="false" CodeFile="ExpenditureReportView.aspx.vb" Inherits="Budget_ExpenditureReportView" title="View Monthly Statement" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc2" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc1" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc3" %>

<%@ Register Src="~/Budget/BudgetSubNav.ascx" TagName="SubNavPlaceHolder" TagPrefix="uc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <cc1:EditCaseSubNav ID="EditCaseSubNav2" runat="server" InvalidTabs="none" ShowCaseNotes="True" ShowEmployeeInfo="True" ShowLegalGuardianInfo="True" ShowMedicalCareProvider="True" ShowParticipantRepInfo="True" ShowPersonalInfo="True" UseTable="true" Width="862px" />
        <cc3:FinancialSubNav  ID="FinancialSubName" runat="server" InvalidTabs="none" ShowBudgetInfo="True" ShowSubmitSpendingPlan="True" ShowViewSpendingPlan="True" ShowGetSpendingPlan="True" ShowViewMonthlyStatement="True" ShowSubmitMonthlyStatement="True" UseTable="true" ShowGetMonthlyStatement="True" ShowHistory="True" ShowAffirmations="true" Width="862px" style="left: 229px; top: 16px" />
                   
    <span style="position:relative; left:15px;">
    <h1><a id="pagecontent"><asp:Label runat="server" ID="MonthlyStatementLabel" /> for <asp:Label runat="server" ID="ParticipantName" /></a></h1>
    </span>    
    <div style="position:relative; left:15px; top:0px; width:955px; height:315px; overflow:auto;" runat="server" id="maindiv" visible="true">
        <table border="0" cellpadding="0" cellspacing="1" style="width:900px;">
        <tr valign="bottom">
        <td style="width:250px;">
            <asp:Label ID="lblMonthlyStatement2" runat="server" CssClass="labelNoWidthOrMargin" Text="Available Spending Plans:" AssociatedControlID="ApprovedSpendingPlanDropDownList"></asp:Label>
       </td><td style="width:700px;" valign="bottom">
            <asp:DropDownList ID="ApprovedSpendingPlanDropDownList" runat="server" AutoPostBack="false" CssClass="formSelect" DataTextField="EffectiveDates" DataValueField="ExpenditureReportId">
                        </asp:DropDownList>            
           </td>
           <td align="left" style="width:355px;" class="labelNoWidthOrMargin">
           <asp:Label ID="BudgetAmountLabel" runat="server" Visible="false">Budget Amount: $500.00</asp:Label></td>
                                </tr>
           <tr valign="bottom"><td align="right"><asp:Label ID="DateRangeLabel" runat="server" CssClass="labelNoWidthOrMargin" Text="Date Range:" ></asp:Label> </td>
           <td style="width:700px;" valign="bottom"><table border="0" cellpadding="0" cellspacing="0"><tr><td><cc2:GenericInputControl runat="server" ID="StartDateInputControl" cssClassLabel="labelNoWidthOrMargin" Editable="true" ControlType="Date" Title="" /></td><td class="labelNoWidthOrMargin" style="width:10px; vertical-align:bottom;">&nbsp;&nbsp;to&nbsp;&nbsp;</td><td><cc1:GenericInputControl runat="server" ID="EndDateInputControl" cssClassControl="Form" cssClassLabel="labelNoWidthOrMargin" ControlType="Date" Title="" /></td></tr></table></td>
           <td class="labelNoWidthOrMargin"><asp:Label ID="SpendingPlanAmountLabel" runat="server" Visible="false">Spending Plan Amount: $2321.00</asp:Label></td>
           </tr>
           <tr valign="bottom"><td></td><td><table cellpadding="0" cellspacing="0"><tr valign="bottom">
           <td><asp:CheckBox ID="MatchSpendingPlanDateRange" CssClass="labelNoWidthOrMargin" runat="server" Text="Or, check here to show all activity against the spending plan." /></td>
           <td>&nbsp;&nbsp;</td><td><asp:Button runat="server" ID="Go" Text="Go" CssClass="formSelectSmallButton" /></td></tr></table></td>
           <td class="labelNoWidthOrMargin"><asp:Label ID="TotalSpendingLabel" runat="server" Visible="false">Total Spending:  $1,225.00</asp:Label></td></tr>
                <tr><td colspan="3" align="center">
                 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
                <asp:GridView ShowFooter="true" ID="ExpenditureReportGridView" runat="server" Font-Bold="true" Font-Names="Arial, MS Sans Serif, Verdana, Sans-Serif" CellPadding="5" BorderColor="gray" BorderStyle="solid" Width="875px" Font-Size="small" BorderWidth="1" AutoGenerateColumns="False">
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <tr style="background-color:#949FB1">
                                <td style="width:5%" ></td>
                                <td style="width:50%" align="center">Category Name</td>
                                <td style="width:50%" align="center">Plan Amount</td>
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td style="width:5%" align="right"><asp:Button runat="server" ID="ToggleDetailsButton" Text="Details" ToolTip="Click here to view detailed information on this item." /></td>
                                <td style="width:50%" align="left">
                                    <asp:Label ID="DisplayNameLabel" runat="server" Text='<%# Eval("ExpenditureReportDisplayName") %>'></asp:Label>
                                </td>
                                <td style="width:40%" align="right">
                                    <asp:Label ID="TotalMonthlyLabel" runat="server" Text='<%# String.Format("{0:C}", Eval("TotalAmount")) %>'></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <asp:GridView ID="GridView6" runat="server" Font-Bold="true" Font-Names="Arial, MS Sans Serif, Verdana, Sans-Serif" CellPadding="5" BorderColor="gray" BorderStyle="solid" Width="875px" Font-Size="small" BorderWidth="1" AutoGenerateColumns="False">
                                        <Columns>
                                        </Columns>
                                        <AlternatingRowStyle BackColor="#E8ECF4" />
                                    </asp:GridView>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            <tr style="background-color:#949FB1">
                                <td colspan="2" align="right">Total</td>
                                <td align="right"><asp:Label ID="lblBalance" runat="server"></asp:Label></td>
                            </tr>
                        </FooterTemplate>
                    </asp:TemplateField>
                </Columns>
                <AlternatingRowStyle BackColor="#E8ECF4" />
            </asp:GridView>
            </ContentTemplate></asp:UpdatePanel>
                </td></tr>
            <tr><td style="font-family:MS Sans Serif, Arial, Verdana, Sans-Serif; font-size: 1em; font-weight:bold; color:#21334B;"></td></tr>
            <tr><td colspan="3" class="labelNoWidth"><asp:Label runat="server" ID="ParticipantNameLabel" /></td></tr>
            </table>
       </div>
</asp:Content>
